package testbench;

import java.util.List;
import java.util.ArrayList;
import java.util.Collections;

import data.*;
import settings.*;
import userinput.*;

public class Driver {
	public static void main(String[] args) {
		//convert data into an ArrayList<DataPoint>
		List<DataPoint> al_datapoint = Text_to_Data.text_to_data(Global.data_location);
		
		//the sort of the data in the ArrayList
		Collections.sort(al_datapoint);		
		
		//break data into disk pages
		ArrayList<DiskPage> al_diskpage = DiskPage.dataPoints_to_diskPages(al_datapoint);
		
		//User Input Request Loop
		RangeQuery rq = null;
		do{
			UserInput.printInputMenu(); //menu
			rq = UserInput.getPointRangeQuery(); //get input
			if (rq!=null) System.out.println("Range: "+rq);
			else System.out.println("Exiting...");
		}while (rq!=null);
		
	}
}